﻿<UserControl x:Class="ProjectenArtesis.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ec="http://schemas.microsoft.com/expression/2010/controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignHeight="366" d:DesignWidth="900" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" MinWidth="900" VerticalContentAlignment="Top" HorizontalContentAlignment="Left" HorizontalAlignment="Left" VerticalAlignment="Top" MinHeight="1200">
    
	
    <UserControl.Resources>
        <Style x:Key="ButtonStyle1" TargetType="Button">
            <Setter Property="Background" Value="#FF1F3B53"/>
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="Padding" Value="3"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="BorderBrush">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                        <GradientStop Color="#FF718597" Offset="0.375"/>
                        <GradientStop Color="#FF617584" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualStateGroup.Transitions>
                                        <VisualTransition GeneratedDuration="0:0:0.25"/>
                                        <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.01" To="Pressed"/>
                                    </VisualStateGroup.Transitions>
                                    <VisualState x:Name="Normal">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(Shape.StrokeThickness)" Storyboard.TargetName="path" d:IsOptimized="True"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ColorAnimation Duration="0" To="White" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="path" d:IsOptimized="True"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="Front_paper" d:IsOptimized="True"/>
                                            <DoubleAnimation Duration="0" To="0.95" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="Front_paper" d:IsOptimized="True"/>
                                            <DoubleAnimation Duration="0" To="0.95" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="Front_paper" d:IsOptimized="True"/>
                                            <ColorAnimation Duration="0" To="Black" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="path" d:IsOptimized="True"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled"/>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Focused"/>
                                    <VisualState x:Name="Unfocused"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Viewbox Margin="0,3,0,1">
                                <Grid Height="95.6030000448227" Width="100.5">
                                    <Image x:Name="Background_paper" Margin="1,0,0,2" Source="Images/background_paper.png" Stretch="Fill"/>
                                    <ec:PathListBox x:Name="Front_paper" Margin="0,1.92,6.082,0.397" RenderTransformOrigin="0.5,0.5">
                                        <ec:PathListBox.RenderTransform>
                                            <CompositeTransform/>
                                        </ec:PathListBox.RenderTransform>
                                        <ec:PathListBox.LayoutPaths>
                                            <ec:LayoutPath SourceElement="{Binding ElementName=path}"/>
                                        </ec:PathListBox.LayoutPaths>
                                        <Path x:Name="path" Data="M0,16.531166 L91.869919,5.4202204 L93.49585,37.398438 C93.49585,37.398438 102.16785,71.816391 40.921341,92.954742 C37.669456,93.767693 8.6721048,98.10376 8.6721048,98.10376 z" Stretch="Fill" StrokeThickness="2" UseLayoutRounding="False" Height="93.683" Width="94.918" Fill="{TemplateBinding Background}" Stroke="Black"/>
                                    </ec:PathListBox>
                                    <Path x:Name="Paperflap" Data="M56.626507,86.919106 C56.79813,86.919212 80.722397,76.592186 89.156136,59.72472 C85.541351,61.44553 79.689438,61.273411 76.591362,58.863739 C76.247131,63.510963 72.804832,74.354507 56.626507,86.919106 z" HorizontalAlignment="Right" Height="28.919" Margin="0,0,10.827,12.081" Stretch="Fill" StrokeThickness="1" UseLayoutRounding="False" VerticalAlignment="Bottom" Width="33.046" Opacity="0.2">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.622,0.021" MappingMode="RelativeToBoundingBox" StartPoint="0.849,0.37">
                                                <GradientStop Color="Black"/>
                                                <GradientStop Color="#FFE5E5E5" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                        <Path.OpacityMask>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="Black" Offset="0"/>
                                                <GradientStop Color="White" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.OpacityMask>
                                    </Path>
                                    <Image x:Name="Paperclip" Margin="1,0,2,4" Source="Images/paperclip.png" Stretch="Fill" d:IsHidden="True"/>
                                </Grid>
                            </Viewbox>
                            <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}">
                                <ContentPresenter.RenderTransform>
                                    <CompositeTransform Rotation="-7.594"/>
                                </ContentPresenter.RenderTransform>
                            </ContentPresenter>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White" Height="1150" Width="900" HorizontalAlignment="Stretch" MinHeight="1100">
        <sdk:AutoCompleteBox Name="autoCompleteBox1" Text="...search" FilterMode="Contains" Height="23" Width="169" ItemsSource="{Binding}" ValueMemberPath="Name" 
                             UseLayoutRounding="False" FlowDirection="LeftToRight" Foreground="#7E000000" HorizontalContentAlignment="Left" 
                             HorizontalAlignment="Left" VerticalAlignment="Top" Margin="93,44,0,0" GotFocus="autoCompleteBox1_GotFocus" 
                             SelectionChanged="autoCompleteBox1_SelectionChanged" IsEnabled="False" MaxDropDownHeight="512">
            <sdk:AutoCompleteBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text="{Binding Path=Name}"  />
                        <TextBlock Text="{Binding Path=ID}"  />
                    </StackPanel>
                </DataTemplate>
            </sdk:AutoCompleteBox.ItemTemplate>
        </sdk:AutoCompleteBox>
        <StackPanel Name="navigationStackPanel" Height="15" Width="876" Orientation="Horizontal" 
                    Margin="12,23,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
        <Button Content="CLB-test" Height="23" HorizontalAlignment="Left" Margin="12,44,0,0" Name="clbtestButton" VerticalAlignment="Top" Width="75" Click="clbtestButton_Click" />

        <Grid x:Name="loaderGrid" Height="169" Width="169" Margin="0,60,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5">
        	<Grid.RenderTransform>
                <TransformGroup>
					<RotateTransform/>
				</TransformGroup>
            </Grid.RenderTransform>
        	<Path Data="M130.5,96.5 L149.47403,115.17532 C142.47878,123.66718 138.26628,132.68164 139,141.5 L112.18806,141.55844 C113.71977,122.82357 119.80259,107.84912 130.5,96.5 z" Fill="#FF21A921" Margin="36.039,0,94.674,122.942" Stretch="Fill" UseLayoutRounding="False"/>
        	<Path Data="M153.5,119 C165.71651,107.07165 180.70338,100.55386 199,100.5 L198.70129,126.94805 C187.71916,128.04872 178.86351,131.84842 172.5,138 C166.16667,131.66667 159.83333,125.33334 153.5,119 z" Fill="#FFFE8800" Margin="77.851,4,44.649,126.5" Stretch="Fill" UseLayoutRounding="False"/>
        	<Path Data="M199,132.5 C218.85268,133.13567 233.54416,139.80139 243.5,152 L225.32468,170.45454 C218.90038,164.02808 209.82678,160.15068 198.5,159.5 z" Fill="#FFEF4310" Margin="122.851,36,0.149,94.045" Stretch="Fill" UseLayoutRounding="False"/>
        	<Path Data="M221.5,174.5 C234.36848,187.15225 240.45349,201.3428 239.61017,219.48051 L213.5,219.5 C214.9487,209.29662 210.46623,200.81882 202,193.5 z" Fill="#FFBB0011" Margin="126.351,78,3.962,45" Stretch="Fill" UseLayoutRounding="False"/>
        	<Path Data="M181.49988,220.5 L207,221 C207.42143,240.2589 200.6604,255.22267 188.63608,264.93503 L169.5,246.5 C178.36253,239.4359 182.45837,231.01904 181.49988,220.5 z" Fill="#FF991199" Margin="93.851,124,36.63,-0.435" Stretch="Fill" UseLayoutRounding="False"/>
        	<Path Data="M105.84415,141.88312 C106.24084,152.46303 110.3572,161.40813 116.55859,168.50662 L98.701202,187.01207 C87.061729,176.82085 80.393356,161.72751 79.545235,142.2079 z" Fill="#FF019875" Margin="3.896,45.383,127.09,77.487" Stretch="Fill" UseLayoutRounding="False"/>
        	<Path Data="M120.45454,202.27272 L120.45409,228.57082 C100.1523,227.8447 85.995903,221.0943 75.648895,210.06467 L94.480354,191.23349 C101.85782,198.65242 110.42764,202.61565 120.45454,202.27272 z" Fill="#FF0076CD" Margin="0,94.734,123.194,35.929" Stretch="Fill" UseLayoutRounding="False"/>
        	<Path Data="M147.4026,223.70129 L165.99979,242.34871 C149.64934,256.73325 138.66661,261.50031 120.83305,260.66696 L121.10371,234.41585 C130.65294,234.6402 139.62785,231.5349 147.4026,223.70129 z" Fill="#FF004499" Margin="45.184,127.201,77.649,3.742" Stretch="Fill" UseLayoutRounding="False"/>
            <Grid.Resources>
                <Storyboard x:Name="loop" RepeatBehavior="Forever">
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle) " Storyboard.TargetName="loaderGrid">
                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                        <EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="180"/>
                        <EasingDoubleKeyFrame KeyTime="0:0:1.8" Value="360"/>
                    </DoubleAnimationUsingKeyFrames>
                </Storyboard>
            </Grid.Resources>
        </Grid>
        <HyperlinkButton Content="Home" Height="17" HorizontalAlignment="Left" Margin="12,0,0,0" Name="hyperlinkButton1" VerticalAlignment="Top" Width="54" Click="OnSchooljaarNaviClick" Foreground="#FFEB9509" Visibility="Collapsed" />
    </Grid>
</UserControl>
